import { GET, POST } from "../api";
const indexUrl=  {
    'leftTop':'/leftTop',//左上
    'leftCenter':'/leftCenter',//左中
    "centerMap":"/bigscreen/centerMap",
    "centerBottom":"/bigscreen/installationPlan",

    'leftBottom':"/leftBottom", //左下
    'rightTop':"/rightTop", //报警次数
    'rightBottom':'/rightBottom',//右下
    'middleBottomTwo':'/middleBottomTwo',//中下左
    'middleBottomOne':'/middleBottomOne',//中下右

    'rightCenter':'/rightCenter',// 右中
    'ai':'/bigscreen/ai',// 报警排名
}

export default indexUrl

/**左上--设备内总览 */
export const getLeftTop=(param:any={})=>{
    return GET(indexUrl.leftTop,param)
}

/**左中--用户总览 */
export const leftCenter=(param:any={})=>{
    return GET(indexUrl.leftCenter,param)
}

/**左下--设备提醒 */
export const getLeftBottom=(param:any={})=>{
    return GET(indexUrl.leftBottom,param)
}

/**中上--地图 */
export const centerMap=(param:any={})=>{
    return GET(indexUrl.centerMap,param)
}

/**中下--安装计划 */
export const installationPlan=(param:any={})=>{
    return GET(indexUrl.centerBottom,param)
}

/**右上--报警次数 */
export const rightTop=(param:any={})=>{
    return GET(indexUrl.rightTop,param)
}

/**右中--报警排名 */
export const rightCenter=(param:any={})=>{
    return GET(indexUrl.rightCenter,param)
}

/**右下--设备状态 */
export const rightBottom=(param:any={})=>{
    return GET(indexUrl.rightBottom,param)
}

/**右下--设备状态 */
export const middleBottomTwo=(param:any={})=>{
    return GET(indexUrl.middleBottomTwo,param)
}

/**右下--设备状态 */
export const middleBottomOne=(param:any={})=>{
    return GET(indexUrl.middleBottomOne,param)
}



/**ai */
export const aiApi=(data: any)=>{
    return POST(indexUrl.ai, data)
}